import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询分计划列表
export function listBranchPlan(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/plm/branchPlan/list'),
    method: 'get',
    params: query
  })
}

// 查询分计划详细
export function getBranchPlan(id) {
  return request({
    url: '/plm/branchPlan/' + id,
    method: 'get'
  })
}

// 新增分计划
export function addBranchPlan(data) {
  return request({
    url: '/plm/branchPlan',
    method: 'post',
    data: data
  })
}

// 修改分计划
export function updateBranchPlan(data) {
  return request({
    url: '/plm/branchPlan',
    method: 'put',
    data: data
  })
}

// 删除分计划
export function delBranchPlan(id) {
  return request({
    url: '/plm/branchPlan/' + id,
    method: 'delete'
  })
}
